#
# Copyright (c) 2024 Huawei Technologies Co.,Ltd.
# 
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# 
#          http://license.coscl.org.cn/MulanPSL2
# 
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# ---------------------------------------------------------------------------------------
# 
# Makefile
#     Makefile for storage/htap
# 
# IDENTIFICATION
#        src/gausskernel/storage/htap/Makefile
# 
# ---------------------------------------------------------------------------------------

subdir = src/gausskernel/storage/htap
top_builddir = ../../../..
MOT_CORE_PATH = $(top_builddir)/src/gausskernel/storage/mot
include $(top_builddir)/src/Makefile.global
override CPPFLAGS += -I$(top_builddir)/src/include/storage/htap \
    -I${MOT_CORE_PATH}/core/concurrency_control \
    -I${MOT_CORE_PATH}/core/infra \
    -I${MOT_CORE_PATH}/core/infra/config \
    -I${MOT_CORE_PATH}/core/infra/containers \
    -I${MOT_CORE_PATH}/core/infra/stats \
    -I${MOT_CORE_PATH}/core/infra/synchronization \
    -I${MOT_CORE_PATH}/core/memory \
    -I${MOT_CORE_PATH}/core/memory/garbage_collector \
    -I${MOT_CORE_PATH}/core/storage \
    -I${MOT_CORE_PATH}/core/storage/index \
    -I${MOT_CORE_PATH}/core/storage/sentinel \
    -I${MOT_CORE_PATH}/core/system \
    -I${MOT_CORE_PATH}/core/system/checkpoint \
    -I${MOT_CORE_PATH}/core/system/common \
    -I${MOT_CORE_PATH}/core/system/recovery \
    -I${MOT_CORE_PATH}/core/system/statistics \
    -I${MOT_CORE_PATH}/core/system/transaction \
    -I${MOT_CORE_PATH}/core/system/transaction_logger \
    -I${MOT_CORE_PATH}/core/system/transaction_logger/group_synchronous_redo_log \
    -I${MOT_CORE_PATH}/core/system/transaction_logger/synchronous_redo_log \
    -I${MOT_CORE_PATH}/core/utils

ifneq "$(MAKECMDGOALS)" "clean"
  ifneq "$(MAKECMDGOALS)" "distclean"
    ifneq "$(shell which g++ |grep hutaf_llt |wc -l)" "1"
      -include $(DEPEND)
    endif
  endif
endif
OBJS = htap.o htap_cfg.o htap_csn_manager.o htap_delete_map.o htap_delta_table.o htap_flush.o htap_flush_worker.o htap_global.o htap_helpers.o htap_infra.o htap_internal.o htap_modify.o htap_statistics.o htap_xlog_redoer.o
include $(top_srcdir)/src/gausskernel/common.mk
